package com.hr.system.mapper;

import com.hr.system.entity.SysRole;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Update;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author hr
 * @since 2024-04-26
 */

@Mapper
public interface SysRoleMapper extends BaseMapper<SysRole> {

    @Update("update sys_role set state=#{state} where id=#{id}")
    Integer changeState(Integer id, Integer state);
}
